package org.Niu.July7th;

import java.util.logging.Logger;

/**
 * 基本日志使用
 */
public class LoggingTest {
    public static void main(String[] args) {
//        日志的级别
//        SEVERE - high
//        WARNING
//        INFO
//        CONFIG
//        FINE
//        FINER
//        FINEST - low
        Logger logger = Logger.getGlobal();
        logger.info("start process...");
        logger.warning("memory is running out...");
        logger.fine("ignored.");
        logger.severe("process will be terminated...");
    }
}
